package pl.edu.agh.neuraleconomy.core.ta.indicator;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import pl.edu.agh.neuraleconomy.model.exchange.Exchange;

public class ClosingPriceCalculator implements ICalculator{

	public Map<Date, Double> calculate(List<Exchange> exchanges) {
		Map<Date, Double> result = new HashMap<Date, Double>();
		for(Exchange e : exchanges){
			result.put(e.getDate(), e.getClosingPrice().doubleValue());
		}
		return result;
	}

	public double[] calculate(double[] data) {
		return data;
	}

	public int getInputLenForOutputLen(int outputLen) {
		return outputLen;
	}

}
